home *** CD-ROM | disk | FTP | other *** search
/ Mastering Internet Develo…oft ActiveX Technologies / Mastering Internet Development with ActiveX (1996)(Microsoft).iso / labs / lab10.2 / solution / echo.h < prev    next >
C/C++ Source or Header  |  1996-07-16  |  737b  |  29 lines

  1. // ECHO.CPP - Implementation file for your Internet Server
  2. //    Echo Extension
  3.  
  4. class CEchoExtension : public CHttpServer
  5. {
  6. public:
  7.     CEchoExtension();
  8.     ~CEchoExtension();
  9.  
  10.     BOOL GetExtensionVersion(HSE_VERSION_INFO* pVer);
  11.  
  12.     // TODO: Add handlers for your commands here.
  13.     // For example:
  14.     void Default(CHttpServerContext* pCtxt);
  15.     //Lab 10.2, ex 2 - Implementing Echo
  16.     void EchoRequest(CHttpServerContext* pCtxt, LPCTSTR pstrOption); 
  17.  
  18. //Lab 10.2, ex 2 - Implementing Echo
  19. //Implementation section
  20. protected:
  21.     void EchoBody(CHttpServerContext* pCtxt);
  22.     void EchoHead(CHttpServerContext* pCtxt);
  23.     void BadSyntax(CHttpServerContext* pCtxt);
  24.     void EchoHelp(CHttpServerContext* pCtxt);
  25.  
  26.     DECLARE_PARSE_MAP()
  27. };
  28.  
  29.